class Animal():
    def __init__(self, leg_count):
        self.leg_count = leg_count

    def Shout(self):
        print("动物叫声")

class Bird(Animal):
    def __init__(self, color, leg_count):
        super().__init__(leg_count)
        self.color = color
    
    def Shout(self):
        print("鸟的叫声是喳喳喳")

    def __str__(self):
        return f"鸟的颜色为{self.color},腿的数量为{self.leg_count}"

class Dog(Animal):
    def __init__(self):
        super().__init__(4)

    def Shout(self):
        print("狗的叫声是汪汪汪")

bird = Bird("白色", 2)
print(bird)
bird.Shout()

dog = Dog()
dog.Shout()
